

function selectable(row, index){
   // return false为禁选
   // return !(index === 0);
   if(row.forbid && row.forbid === '1'){
      return false
   }else{
      return true
   }
}

export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "searchMenuSpan": 6,
  "viewBtn": true,
  reserveSelection:true,
  addBtn:false,
  searchShow:false,
  menu:false,
  selection:true,
  selectable:selectable,
  "column": [
   {
       "type": "input",
       "label": "产品许可编号",
       "prop": "proSn",
       "search": true
    },    {
       "type": "input",
       "label": "产品名称",
       "prop": "proName",
       "search": true
    },    {
       "type": "input",
       "label": "标准单价(元)",
       "prop": "normalAmount",
       "search": false
    },    {
       "type": "input",
       "label": "预算金额",
       "prop": "budgetAmount",
       "search": false
    },    {
       "type": "input",
       "label": "销售单价(元)",
       "prop": "saleAmount",
       "search": false
    },    {
       "type": "input",
       "label": "单位成本(元)",
       "prop": "unitAmount",
       "search": false
    },    {
       "type": "input",
       "label": "子产品数量(套)",
       "prop": "subNum",
       "search": false
    },    {
       "type": "input",
       "label": "使用人数限制(人)",
       "prop": "limitNum",
       "search": false
    },    {
       "type": "input",
       "label": "产品分类",
       "prop": "proType",
       "search": false,
       dicData:[{
         label:'正式版',
         value:1
       },{
         label:'试用版',
         value:0
       }]
    },    {
       "type": "input",
       "label": "部署方式",
       "prop": "deployType",
       "search": false,
       dicData:[{
         label:'SAAS',
         value:'1'
       },{
         label:'本地部署',
         value:'2'
       }]
    },    {
       "type": "input",
       "label": "产品介绍",
       "prop": "proDesc",
       "search": false
    },    {
       "type": "input",
       "label": "是否上架",
       "prop": "proStatus",
       "search": false,
       dicData:[{
         label:'上架',
         value:1
       },{
         label:'下架',
         value:0
       }]
    },    {
       "type": "datetime",
       "label": "创建时间",
       "prop": "createTime",
        format: 'yyyy-MM-dd HH:mm:ss',
        valueFormat: 'yyyy-MM-dd HH:mm:ss',
       "search": false
    },{
       "type": "datetime",
       "label": "更新时间",
       "prop": "updateTime",
        format: 'yyyy-MM-dd HH:mm:ss',
        valueFormat: 'yyyy-MM-dd HH:mm:ss',
       "search": false
    }]
}
